RewriteEngine on

RewriteRule explore-([0-9]+)-(.*)$ explore.php?id=$1&title=$2 [NC,L]
RewriteRule profile-([0-9]+)-(.*)$ profile.php?pid=$1&name=$2 [NC,L]
RewriteRule likes-([0-9]+)-(.*)$ likes.php?pid=$1&name=$2 [NC,L]
RewriteRule following-([0-9]+)-(.*)$ following.php?pid=$1&name=$2 [NC,L]
RewriteRule followers-([0-9]+)-(.*)$ followers.php?pid=$1&name=$2 [NC,L]
RewriteRule collections-([0-9]+)-(.*)$ collections.php?pid=$1&name=$2 [NC,L]
RewriteRule collection-([0-9]+)-(.*)$ collection.php?id=$1&name=$2 [NC,L]
RewriteRule tags-(.*)$ tags.php?tag=$1 [NC,L]
RewriteRule edit-(.*)$ edit.php?id=$1 [NC,L]
RewriteRule show_msg-([0-9]+)$ show_msg.php?mid=$1 [NC,L]
RewriteRule ^([^\.]+)$ $1.php [NC,L]


